import { createStore, applyMiddleware, combineReducers } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension/developmentOnly';
import thunk from 'redux-thunk';
import * as reducers from 'reducers';
import bookApi from '../middlewares';

const _reducers = combineReducers({ ...reducers });

export default createStore(_reducers, composeWithDevTools(applyMiddleware(thunk, bookApi)));
